import request from '@/utils/request'

// 查询工程预算与工程支出统计明细列表
export function listProbudpayoutdetail(query) {
  return request({
    url: '/emt/probudpayoutdetail/list',
    method: 'get',
    params: query
  })
}

// 查询工程预算与工程支出统计明细详细
export function getProbudpayoutdetail(detailId) {
  return request({
    url: '/emt/probudpayoutdetail/' + detailId,
    method: 'get'
  })
}

// 新增工程预算与工程支出统计明细
export function addProbudpayoutdetail(data) {
  return request({
    url: '/emt/probudpayoutdetail',
    method: 'post',
    data: data
  })
}

// 修改工程预算与工程支出统计明细
export function updateProbudpayoutdetail(data) {
  return request({
    url: '/emt/probudpayoutdetail',
    method: 'put',
    data: data
  })
}

// 删除工程预算与工程支出统计明细
export function delProbudpayoutdetail(detailId) {
  return request({
    url: '/emt/probudpayoutdetail/' + detailId,
    method: 'delete'
  })
}
